package com.amumu.netctoss.dao;

import java.util.List;
import java.util.Map;

import com.amumu.netctoss.entity.Account;
import com.amumu.netctoss.entity.Cost;

public interface AccountDao {
	/**
	 * 查询
	 */
	List<Account> findAll(int page,int size)throws Exception;
	/**
	 * 按条件查询
	 */
	List<Account> search(int page,int size,String idcardNo,String realName,
			String loginName,String status)throws Exception;
	void save(Account act)throws Exception;
	void update(Account act)throws Exception;
	void delete(int id)throws Exception;
	void setStatus(int id,String status)throws Exception;
	String findPassword(int id)throws Exception;
	Account findByIdcard(String idcardNo)throws Exception;
	String findIdcardNo(Integer id)throws Exception;
	Account findById(int id)throws Exception;
	boolean hasLoginName(String name)throws Exception;
	Map<String,Object> getStatusOptions()throws Exception;
	Map<String,Object> getOccupationOptions()throws Exception;
	int getPageCount(int size)throws Exception;
	int getPageCount(int size, String idcardNo,String realName,
			String loginName,String status)throws Exception;
}
